import os
from typing import Any, Dict
from urllib.parse import parse_qsl, quote_plus

from pydantic import Field, NonNegativeInt, PositiveInt, computed_field
from pydantic_settings import BaseSettings


class SimilarConfig(BaseSettings):

    SIMILAR_INDEX: bool = Field(
        description="if true build index or query db to similar compute",
        default=True,
    )

    MAX_RETRY_TIMES: PositiveInt = Field(
        description="max retry times ",
        default=3,
    )

    REQUEST_URL: str = Field(
        description="request url ",
        default="",
    )


